Optimal. Leaf size=87 \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0489624, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192, Rules used = {73, 329, 212, 208, 205} \[ \frac{\tan ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 73
Rule 329
Rule 212
Rule 208
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{\sqrt{e x} (a+b x) (a c-b c x)} \, dx &=\int \frac{1}{\sqrt{e x} \left (a^2 c-b^2 c x^2\right )} \, dx\\ &=\frac{2 \operatorname{Subst}\left (\int \frac{1}{a^2 c-\frac{b^2 c x^4}{e^2}} \, dx,x,\sqrt{e x}\right )}{e}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{a e-b x^2} \, dx,x,\sqrt{e x}\right )}{a c}+\frac{\operatorname{Subst}\left (\int \frac{1}{a e+b x^2} \, dx,x,\sqrt{e x}\right )}{a c}\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}}+\frac{\tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{e x}}{\sqrt{a} \sqrt{e}}\right )}{a^{3/2} \sqrt{b} c \sqrt{e}}\\ \end{align*}
Mathematica [A] time = 0.0246309, size = 61, normalized size = 0.7 \[ \frac{\sqrt{x} \left (\tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )+\tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )\right )}{a^{3/2} \sqrt{b} c \sqrt{e x}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 56, normalized size = 0.6 \begin{align*}{\frac{1}{ac}\arctan \left ({b\sqrt{ex}{\frac{1}{\sqrt{aeb}}}} \right ){\frac{1}{\sqrt{aeb}}}}+{\frac{1}{ac}{\it Artanh} \left ({b\sqrt{ex}{\frac{1}{\sqrt{aeb}}}} \right ){\frac{1}{\sqrt{aeb}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.1947, size = 392, normalized size = 4.51 \begin{align*} \left [-\frac{2 \, \sqrt{a b e} \arctan \left (\frac{\sqrt{a b e} \sqrt{e x}}{b e x}\right ) - \sqrt{a b e} \log \left (\frac{b e x + a e + 2 \, \sqrt{a b e} \sqrt{e x}}{b x - a}\right )}{2 \, a^{2} b c e}, -\frac{2 \, \sqrt{-a b e} \arctan \left (\frac{\sqrt{-a b e} \sqrt{e x}}{b e x}\right ) + \sqrt{-a b e} \log \left (\frac{b e x - a e - 2 \, \sqrt{-a b e} \sqrt{e x}}{b x + a}\right )}{2 \, a^{2} b c e}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.75659, size = 175, normalized size = 2.01 \begin{align*} \begin{cases} \frac{1}{a b c \sqrt{e} \sqrt{x}} + \frac{\operatorname{acoth}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b} c \sqrt{e}} + \frac{\operatorname{atan}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b} c \sqrt{e}} & \text{for}\: \frac{\left |{b x}\right |}{\left |{a}\right |} > 1 \\\frac{1}{a b c \sqrt{e} \sqrt{x}} + \frac{\operatorname{atan}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b} c \sqrt{e}} + \frac{\operatorname{atanh}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{a^{\frac{3}{2}} \sqrt{b} c \sqrt{e}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18141, size = 78, normalized size = 0.9 \begin{align*} \frac{\arctan \left (\frac{b \sqrt{x}}{\sqrt{a b}}\right ) e^{\left (-\frac{1}{2}\right )}}{\sqrt{a b} a c} - \frac{\arctan \left (\frac{b \sqrt{x} e^{\frac{1}{2}}}{\sqrt{-a b e}}\right )}{\sqrt{-a b e} a c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]